﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; 
  
namespace lCash
{
    public partial class FLogin : Form
    {
        public FLogin()
        {
            InitializeComponent();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            /* пример гет запроса и кодирования в мд5
            string answer;            
            string URL = "http://astrader.ru/get/get.php?login=" + textBoxLogin.Text + "&password=" + Hash.GetMd5Hash(textBoxPass.Text);            
            answer = Web.GetData(URL);            
            MessageBox.Show(answer);
             */
            MainForm mForm = new MainForm();
            Hide();
            mForm.ShowDialog();
        }

        private void buttonReg_Click(object sender, EventArgs e)
        {
            RegForm rForm = new RegForm();
            rForm.ShowDialog();
        }

        private void textBoxLogin_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
